<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script type="module">
    // 成功或失败回调可以执行多次.
	import Promise from "./index.js";
	const p = new Promise(function (resolve, reject) {
		setTimeout(()=>{
			reject(200)
        })
	});
	p.then(value=>{
		console.log("成功回调1",value)
    },(reason)=>{
		console.log("失败回调1",reason)
    })
	p.then(value=>{
		console.log("成功回调2",value)
	},(reason)=>{
		console.log("失败回调2",reason)
	})
	p.then(value=>{
		console.log("成功回调3",value)
	},(reason)=>{
		console.log("失败回调3",reason)
	})



</script>
</html>